package sng.modules.view.components.city.strategy
{
	import sng.data.info.GlobalInfo;
	import sng.modules.model.vo.BuildingVO;
	import sng.modules.model.vo.UserBuildingVO;
	import sng.modules.view.components.city.logic.unit.BaseBuilding;
	
	public class ExpandStrategy extends Strategy
	{
		public function ExpandStrategy(building:BaseBuilding, bvo:BuildingVO, userbvo:UserBuildingVO)
		{
			super(building, bvo, userbvo);
		}
		
		public override function createBuildingStrategy():BuildingIncrement
		{
			//建筑消失，扩地成功，改变游戏的地图数据
			
			
			//1.计算新建开始的数值变化
			GlobalInfo.mainvo.money = GlobalInfo.mainvo.money-m_bvo.buildingprice;
			
			return new BuildingIncrement();
		}
	}
}